package sohsite.util.generico;

import org.hibernate.Session;
import org.hibernate.Transaction;

import sohsite.util.Conexao;

public class ControladorGenerico {
	private Session session;
	
	public ControladorGenerico(){
		this.session = Conexao.encontrarSessao();
	}
	
	public Transaction iniciarTransacao(){
		Transaction transacao = this.session.beginTransaction();
		return transacao;
	}
	
}
